<script lang="ts">
import { h,toRaw } from 'vue'
import { NIcon } from 'naive-ui'
export default {
    props: ['icon', 'className'],
    setup(props) {
        return () => h(
            'div',
            {
                class: props.className
            },
            h(NIcon, null, () => h(toRaw(props.icon)))
        )
    }
}
</script>

<style scoped>

</style>